package com.ztgf.shopping.models.vo.shop;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ztgf.common.annotations.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/*
 * @author: chenyu.wang
 * @date: 2020-08-19
 * @description:店铺运营产品统计销量排名VO
 */
@Data
public class ShopGoodsSalesRankVO implements Serializable {

    @ApiModelProperty(value = "排名")
    private Integer ranks;

    @ApiModelProperty(value = "商品图片")
    private String logoUrl;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "销量")
    private Integer sales;

    @ApiModelProperty(value = "成交金额")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal turnover;

    @ApiModelProperty(value = "商品Id")
    private Long goodsId;
}
